package vip.ifmm.lehouse.common.enums.status;

import vip.ifmm.lehouse.common.enums.Statable;

/**
 * @author Red
 * email: 1318944013@qq.com
 * date: 2019/6/16 18:02
 */
public enum MqStatus implements Statable {
    MSG_SEND_SUCCESS(0, "消息发送成功"),
    MSG_SEND_FAILURE(-1, "消息发送失败"),
    SEND_SERVICE_IS_UNAVAILABLE(-1, "消息队列服务不可用");

    private String msg;

    private int code;

    MqStatus(int code, String msg) {
        this.msg = msg;
        this.code = code;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
